<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="top.fleamarket.domain.User"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>校园二手交易平台</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/main.css" type="text/css" />
	<script type="text/javascript">
	//退出确认框
	function confirm_logout() {   
	    var msg = "您确定要退出登录吗？";   
	    if (confirm(msg)==true){   
	    return true;   
	    }else{   
	    return false;   
	    }   
	} 
	</script>
</head>
<body class="main">
	<jsp:include page="head.jsp" />
	<div style="text-align:left; margin:5px 10px 5px 170px;float:left;width:1518.4px;">
		<a href="${pageContext.request.contextPath }/index.jsp">首页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
						我的帐户&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;欢迎
	</div>
	
	
	<div class="account1" style="width:220px;backgground:white;box-shadow:0 26px 26px rgb(0 0 0 / 50%);">
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath }/client/modifyuserinfo.jsp">用户信息修改</a>
		</div>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath}/findOrderByUser">订单查询</a>
		</div><%
		User user = (User) request.getSession().getAttribute("user");
 				if(null == user){}else{
 				%> 
 				<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
				<a href="${pageContext.request.contextPath }/client/add.jsp">发布商品</a> 
				</div>
				<%
				}
 				%>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath}/logout" onclick="javascript:return confirm_logout()">用户退出</a>
		</div>
		
		
			
	</div>
	<div class="account2" style="width:1000px;height:500px;float:left;margin-top:0px;background:white;box-shadow:0 26px 26px rgb(0 0 0 / 50%);margin-bottom:50px;border-radius:20px">
		<div>
			<div style="float:left;width:400px;text-align:center;padding:50px">
				<span style="font-size:30px">${user.username}</span><br /><br />
				<span style="font-size:20px;color:rgb(200,200,200);margin-left:-30px">欢迎您！</span>
			</div>
			<div style="float:left;width:400px;text-align:cente;padding:50px;height:52.8px">
				<span style="font-size:20px;">绑定邮箱：</span>
				<span style="font-size:20px">${user.email}</span>
			</div>
		</div>
		<div>
			<div style="margin-top:30px;float:left;margin-left:190px">
				<img src="${pageContext.request.contextPath }/productImg/12/13/icon-1.png" style="float:left;width:70px;height:70px;">
				<div style="height:70px;float:left;margin-left:10px"><span style="font-size:20px;line-height:70px;"><a href="${pageContext.request.contextPath}/findOrderByUser">待支付的订单：${orders0.size()}</a></span></div>
			</div>
			<div style="margin-top:30px;float:right;margin-right:190px">
				<img src="${pageContext.request.contextPath }/productImg/12/13/icon-2.png" style="float:left;width:70px;height:70px;">
				<div style="height:70px;float:left;margin-left:10px"><span style="font-size:20px;line-height:70px;"><a href="${pageContext.request.contextPath}/findOrderByUser">待收货的订单：${orders.size()-orders0.size() }</a></span></div>
			</div>
		<div style="margin-top:60px;float:left;margin-left:190px">
				<img src="${pageContext.request.contextPath }/productImg/12/13/icon-3.png" style="float:left;width:70px;height:70px;">
				<div style="height:70px;float:left;margin-left:10px"><span style="font-size:20px;line-height:70px;"><a href="${pageContext.request.contextPath}/findOrderByUser">历史订单：${orders.size() }</a></span></div>
			</div>
		<div style="margin-top:60px;float:right;margin-right:210px">
				<img src="${pageContext.request.contextPath }/productImg/12/13/icon-4.png" style="float:left;width:70px;height:70px;">
				<div style="height:70px;float:left;margin-left:10px"><span style="font-size:20px;line-height:70px;"><a href="${pageContext.request.contextPath}/client/cart.jsp">喜欢的订单：${count1==null?0:count1.size() }</a></span></div>
			</div>
		
		</div>
	</div>
<!-- 	<div id="divpagecontent"> -->
<!-- 		<table width="100%" border="0" cellspacing="0"> -->
<!-- 			<tr> -->
<!-- 				<td width="25%"> -->
<!-- 					<table width="100%" border="0" cellspacing="0" style="margin-top:30px"> -->
<!-- 						<tr> -->
<!-- 							<td class="listtitle">我的帐户</td> -->
<!-- 						</tr> -->
<!-- 						<tr> -->
<!-- 							<td class="listtd"> -->
<%-- 								<img src="${pageContext.request.contextPath }/client/images/icon1.png" width="15" height="10" /> --%>
<!-- 								&nbsp;&nbsp;&nbsp;&nbsp;  -->
<%-- 								<a href="${pageContext.request.contextPath }/client/modifyuserinfo.jsp">用户信息修改</a> --%>
<!-- 							</td> -->
<!-- 						</tr> -->
<!-- 						<tr> -->
<!-- 							<td class="listtd"> -->
<%-- 								<img src="${pageContext.request.contextPath }/client/images/icon2.png" width="15" height="10" /> --%>
<!-- 								&nbsp;&nbsp;&nbsp;&nbsp;  -->
<%-- 								<a href="${pageContext.request.contextPath}/findOrderByUser">订单查询</a> --%>
<!-- 							</td> -->
<!-- 						</tr> -->
<!-- 						<tr> -->
<!-- 							<td class="listtd"> -->
<%-- 								<img src="${pageContext.request.contextPath }/client/images/icon3.png" width="15" height="10" /> --%>
<!-- 								&nbsp;&nbsp;&nbsp;&nbsp;  -->
<%-- 								<a href="${pageContext.request.contextPath}/logout" onclick="javascript:return confirm_logout()">用户退出</a> --%>
<!-- 							</td> -->
<!-- 						</tr> -->
<!-- 					</table> -->
<!-- 				</td> -->
<!-- 				<td> -->
<!-- 					<div style="text-align:right; margin:5px 10px 5px 0px"> -->
<%-- 						<a href="${pageContext.request.contextPath }/index.jsp">首页</a> --%>
<!-- 						&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; -->
<!-- 						我的帐户&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;欢迎 -->
<!-- 					</div> -->
<!-- 					<table cellspacing="0" class="infocontent"> -->
<!-- 						<tr> -->
<!-- 							<td style="padding:20px"><p> -->
<%-- 								<img src="${pageContext.request.contextPath }/client/images/myad.jpg" width="631" height="436" /> --%>
<!-- 								</p> -->
<!-- 							</td> -->
<!-- 						</tr> -->
<!-- 					</table> -->
<!-- 				</td> -->
<!-- 			</tr> -->
<!-- 		</table> -->
<!-- 	</div> -->
	<jsp:include page="foot.jsp" />
</body>
</html>
